package com.xmall.pethouse_api.pojo.dto;

import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Max;

import java.io.Serializable;

@Data
public class AddPetDto implements Serializable {
    
    @NotBlank(message = "宠物名称不能为空")
    private String name;
    
    @NotBlank(message = "宠物类型不能为空")
    private String type;
    
    private String breed;
    
    @NotNull(message = "年龄不能为空")
    @Min(value = 0, message = "年龄不能小于0")
    @Max(value = 30, message = "年龄不能大于30")
    private Integer age;
    
    @NotNull(message = "性别不能为空")
    private Integer gender; // 0:未知 1:公 2:母
    
    @Min(value = 0, message = "体重不能小于0")
    private Double weight;
    
    private String photoUrls; // JSON数组字符串
} 